﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TurtleLib.ComputerCraft
{
  public partial class AdvancedMonitor : Monitor
  {
    private colors _backColor;
    private colors _foreColor;

    public AdvancedMonitor()
      : this(standalone_width, standalone_height)
    {
    }

    internal AdvancedMonitor(int w, int h)
      : base(w, h)
    {
      // default colors
      _backColor = colors.black;
      _foreColor = colors.white;
    }

    public override bool isColor()
    {
      return true;
    }

    internal override colors GetBackgroundColor()
    {
      return _backColor;
    }

    internal override colors GetTextColor()
    {
      return _foreColor;
    }

    public override void setBackgroundColor(colors color)
    {
      _backColor = color;
    }

    public override void setTextColor(colors color)
    {
      _foreColor = color;
    }
  }
}
